const connect = require('connect');
const serveFavicon = require('serve-favicon');
const morgan = require('morgan');
const join = require('path').join;

const path = join(__dirname, 'favicon.ico');

connect()
  .use(serveFavicon(path))
  .use(morgan())
  .use(function (req, res) {
    res.end('Hello world!\n');
  })
  .listen(3000);

console.log('http://localhost:3000');
